QuickOPC User's Guide and Reference
Success<T>(T) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.OperationModel Namespace > ValueResult Class > Success Method : Success<T>(T) Method
A value that is a successful result of the operation.
Returns a successful value result with given value.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Shared Function Success(Of T)( _
   ByVal value As T _
) As ValueResult(Of T)
'Usage
 
Dim value As T
Dim value As ValueResult(Of T)
 
value = ValueResult.Success(Of T)(value)
[NotNull()]
public static ValueResult<T> Success<T>( 
   T value
)
[NotNull()]
public:
static ValueResult<T^>^ Successgeneric<typename T>
( 
   T^ value
) 

Parameters

value
A value that is a successful result of the operation.

Type Parameters

T

Return Value

The successful value result.
Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also